﻿@model blacksoft.Models.Promocion
@using blacksoft.Helpers

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutVentas.cshtml";
}

<div class="block big">
    <div class="titlebar">
        <h3>Modificar Promoción</h3>
    </div>
    <div class="block_cont">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.IdPromocion)

                <div class="form-row">
                    @Html.LabelForRequired(model => model.TipoCliente)
                    @Html.DropDownList("TipoCliente", null, "Elegir", new { @class = "select" })
                    @Html.ValidationMessageFor(model => model.TipoCliente)
                </div>
                <div class="form-row">
                    @Html.LabelForRequired(model => model.PorcentajeDescuento)
                    @Html.EditorFor(model => model.PorcentajeDescuento)
                    @Html.ValidationMessageFor(model => model.PorcentajeDescuento)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.PuntosRequeridos)
                    @Html.EditorFor(model => model.PuntosRequeridos)
                    @Html.ValidationMessageFor(model => model.PuntosRequeridos)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.FechaInicio)
                    @Html.TextBoxFor(model => model.FechaInicio, new { @class = "text-box single-line", @readonly = "readonly", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.FechaInicio)
                    @Html.ValidationMessageFor(model => model.FechaInicio)

                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.FechaFin)
                    @Html.TextBoxFor(model => model.FechaFin, new { @class = "text-box single-line", @readonly = "readonly", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.FechaFin)
                    @Html.ValidationMessageFor(model => model.FechaFin)

                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Estado)
                    @Html.TextBoxFor(model => model.Estado, new { @class = "text-box single-line", @readonly = "readonly", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.Estado)
                    @Html.ValidationMessageFor(model => model.Estado)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Descripcion)
                    @Html.EditorFor(model => model.Descripcion)
                    @Html.ValidationMessageFor(model => model.Descripcion)
                </div>

                <br />
                <div class="form-row">
                    <input type="submit" value="Guardar" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado", "Index")
                </div>

            </div>
        }
    </div>
</div>